css: Emit a special error for a common error
authorBenjamin Otte <otte@redhat.com>
Wed, 20 Oct 2021 22:05:56 +0000 (00:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 20 Oct 2021 22:16:20 +0000 (00:16 +0200)
commit350a5edb87c447d7ef302df08cdd993e6425e8f0
tree8636fa18acb61479a82c8867d60dbc3f5831dff1
parentc11bd57422a1d84a2e507b020461f4afd74f0726
css: Emit a special error for a common error

This CSS:
  calc(5px+3px)
is wrong because it gets broken to:
  calc(  5px  +3px  )
which is 2 numbers inside the calc, and what you want is:
  calc(  5px  +  3px  )
but you need to add a space to get this, like so:
  calc(5px + 3px)
which is the recommended way to write calc() statements.

So whenever we encounter an error, check if the next token is a signed
number and if so, include it in the error message.
gtk/gtkcsscalcvalue.c